package com.zjitc.dao;

import com.zjitc.pojo.Country;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/26 15:01
 * @description:
 */
@Component
public interface CountryDao {

  List<Country> findAll();


  List<Country> searchCountry(@Param("region") String region);

  void add(Country country);

  int update(Country country);

  int delete(@Param("code") String code);

  Country findbycode(@Param("code")String code);

}
